import request from '@/utils/request'

// 获取活码统计页头部计数
export function queryStatistics(query) {
  return request({
    url: '/admin/admin/channlCode/statistics',
    method: 'get',
    params: query
  })
};

// 获取活码排行
export function queryRank(query) {
  return request({
    url: '/admin/admin/channlCode/rank',
    method: 'post',
    data: query
  })
};

// 获取活码趋势
export function queryTrend(query) {
  return request({
    url: '/admin/admin/channlCode/trend',
    method: 'get',
    params: query
  })
};

// 获取活码明细列表
export function searchDetail(query) {
  return request({
    url: '/admin/admin/channlCode/searchDetail',
    method: 'post',
    data: query
  })
};

// 活码详情导出
export function exportDetail(query) {
  return request({
    url: '/admin/admin/channlCode/export',
    method: 'post',
    data: query
  })
};
